package com.mk.Entity;

public class queryObject {//前端传往后端的对象

    private Integer currentPage=1;//当前页
    private Integer PageSize=5;
    private Integer startIndex;
    private String keytitle;
    private Long keytid;
    private Long keytagid;
    private Boolean keyrecommend;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return PageSize;
    }

    public void setPageSize(Integer pageSize) {
        PageSize = pageSize;
    }

    public Integer getStartIndex() {
        return (this.currentPage-1)*this.PageSize;
    }

    public String getKeytitle() {
        return keytitle;
    }

    public void setKeytitle(String keytitle) {
        this.keytitle = keytitle;
    }

    public Long getKeytid() {
        return keytid;
    }

    public void setKeytid(Long keytid) {
        this.keytid = keytid;
    }

    public Boolean getKeyrecommend() {
        return keyrecommend;
    }

    public void setKeyrecommend(Boolean keyrecommend) {
        this.keyrecommend = keyrecommend;
    }

    public Long getKeytagid() {
        return keytagid;
    }

    public void setKeytagid(Long keytagid) {
        this.keytagid = keytagid;
    }

    @Override
    public String toString() {
        return "queryObject{" +
                "currentPage=" + currentPage +
                ", PageSize=" + PageSize +
                ", startIndex=" + startIndex +
                ", keytitle='" + keytitle + '\'' +
                ", keytid=" + keytid +
                ", keyrecommend=" + keyrecommend +
                '}';
    }
}
